package customer.GUI.components;

import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

import customer.GUI.components.actions.NetPlayAboutAction;
import customer.GUI.components.actions.NetPlayCreateGameAction;
import customer.GUI.components.actions.NetPlayExitAction;


public class NetPlayCustomMenuBar extends JMenuBar {
	
	
	/*
	 * Components
	 */
	private JMenu menuFichier;
	private JMenu menuAbout;
	
	private JMenuItem itemCreateGame;
	private JMenuItem itemExit;
	private JMenuItem itemAbout;
	
	
	public NetPlayCustomMenuBar()
	{
		super( );
		
		menuFichier = new JMenu("Files");
		itemCreateGame = new JMenuItem(new NetPlayCreateGameAction());
		menuFichier.add(itemCreateGame);
		itemExit = new JMenuItem(new NetPlayExitAction());
		menuFichier.add(itemExit);		
		this.add(menuFichier);
		
		
		menuAbout = new JMenu("About");
		itemAbout = new JMenuItem(new NetPlayAboutAction());
		menuAbout.add(itemAbout);
		this.add(menuAbout);
	}
	
	
	
}
